<template>
    <div>
       lifecycle
    </div>
</template>

<script>
export default {
    props:{},
    data(){},
    computed:{},
    watch:{},
    methods:{},
    components:{},
    beforecreated(){
        console.log('初始化实例之前执行')
    },
    created(){
        console.log('初始化实例完成执行')
    },
    beforeMount(){
        console.log('挂载之前执行')
    },
    mounted(){
        console.log('挂载完成执行')
    },
    beforeUpdate(){
        console.log('数据更新，虚拟dom更新之前执行')
    },
    updated(){
        console.log('数据更新，虚拟dom更新完成执行')
    },
    beforeDestroy(){
        console.log('实例销毁之前执行')
    },
    destroyed(){
        console.log('实例销毁后执行')
    },
}
</script>